package com.sea.wechat.util;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Configuration
@PropertySource(value = "classpath:/wechat.properties")
@EnableCaching
public class ConfigUtil {
	@Value("${appid}")
	private String appid;
	
	@Value("${appsecret}")
	private String appsecret;
	
	@Value("${token}")
	private String token;
	
	@Value("${get_access_token_url}")
	private String getAccessTokenUrl;

	@Value("${get_server_ip}")
	private String getServerIp;
	
	@Value("${create_menu_url}")
	private String createMenuUrl;

	@Value("${custom_service_add_url}")
	private String customServiceAddUrl;
	
	@Value("${custom_service_update_url}")
	private String customServiceUpdateUrl;
	
	@Value("${custom_service_del_url}")
	private String customServiceDelUrl;
	
	@Value("${custom_service_list_url}")
	private String customServiceListUrl;
	
	@Value("${custom_message_send_url}")
	private String customMessageSendUrl;
	
	public String getAppid() {
		return appid;
	}

	public void setAppid(String appid) {
		this.appid = appid;
	}

	public String getAppsecret() {
		return appsecret;
	}

	public void setAppsecret(String appsecret) {
		this.appsecret = appsecret;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getGetAccessTokenUrl() {
		return getAccessTokenUrl;
	}

	public void setGetAccessTokenUrl(String getAccessTokenUrl) {
		this.getAccessTokenUrl = getAccessTokenUrl;
	}

	public String getCreateMenuUrl() {
		return createMenuUrl;
	}

	public void setCreateMenuUrl(String createMenuUrl) {
		this.createMenuUrl = createMenuUrl;
	}

	public String getGetServerIp() {
		return getServerIp;
	}

	public void setGetServerIp(String getServerIp) {
		this.getServerIp = getServerIp;
	}

	public String getCustomServiceAddUrl() {
		return customServiceAddUrl;
	}

	public void setCustomServiceAddUrl(String customServiceAddUrl) {
		this.customServiceAddUrl = customServiceAddUrl;
	}

	public String getCustomServiceUpdateUrl() {
		return customServiceUpdateUrl;
	}

	public void setCustomServiceUpdateUrl(String customServiceUpdateUrl) {
		this.customServiceUpdateUrl = customServiceUpdateUrl;
	}

	public String getCustomServiceDelUrl() {
		return customServiceDelUrl;
	}

	public void setCustomServiceDelUrl(String customServiceDelUrl) {
		this.customServiceDelUrl = customServiceDelUrl;
	}

	public String getCustomServiceListUrl() {
		return customServiceListUrl;
	}

	public void setCustomServiceListUrl(String customServiceListUrl) {
		this.customServiceListUrl = customServiceListUrl;
	}

	public String getCustomMessageSendUrl() {
		return customMessageSendUrl;
	}

	public void setCustomMessageSendUrl(String customMessageSendUrl) {
		this.customMessageSendUrl = customMessageSendUrl;
	}
	


}
